// To parse this JSON data, do
//
//     final fileEntity = fileEntityFromJson(jsonString);

import 'dart:convert';

FileEntity fileEntityFromJson(String str) => FileEntity.fromJson(json.decode(str));

String fileEntityToJson(FileEntity data) => json.encode(data.toJson());

class FileEntity {
  String newName;
  String fileNameUrl;
  double fileSizeM;

  FileEntity({
    required this.newName,
    required this.fileNameUrl,
    required this.fileSizeM,
  });

  factory FileEntity.fromJson(Map<String, dynamic> json) => FileEntity(
    newName: json["newName"],
    fileNameUrl: json["file_name_url"],
    fileSizeM: json["file_size_m"]?.toDouble(),
  );

  Map<String, dynamic> toJson() => {
    "newName": newName,
    "file_name_url": fileNameUrl,
    "file_size_m": fileSizeM,
  };
}